package lapsnake.py.ast;

import lapsnake.model.*;
import lapsnake.model.data.*;
import lapsnake.py.ast.ASTHelperFactory; 
import java.beans.PropertyVetoException;

import org.python.antlr.ast.*;

/**Helper for *eliminating* Expr nodes from the AST. This class exists to make this fact explicit.*/
public class ExprEliminator {
	public static LapExpression elimnateExpr(PyAST pyAST, ChildField<? super LapStatement> parent, Expr node) throws PropertyVetoException {
		return (LapExpression) ASTHelperFactory.makeHelperOrNull(pyAST, parent, node.getInternalValue());
	}
}
